<!DOCTYPE html>
<html lang="en">
<head>
    <base href="${basePath}">
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <link rel="stylesheet" href="${basePath}static/ztc/css/base.css">
    <link rel="stylesheet" href="${basePath}static/ztc/css/main.css">
    <link rel="stylesheet" type="text/css" href="${basePath}static/ztc/css/uiGroup.css">
    <script type="text/javascript" src="${basePath}static/js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="${basePath}static/jquerysession.js"></script>
    <script type="text/javascript" src="${basePath}static/ztc/js/myjs/global.js"></script>
</head>


<body>
    <div id="selectPart" class="dialogContent" style=" overflow: auto;">
        <div class="label">选择部门：</div>
        <#list depts?if_exists  as systemDt>
            <div class="department fl " style="width: 50%;text-align: left">
                <input class="depart" type="radio" name="depart" deptname="${systemDt.name!}" value="${systemDt.id}" />
                 ${systemDt.name!}
            </div>
        </#list>
    </div>
    <div class="btn_group fixed">
        <button class="submitBtn whateBtn" id="SelectDept" >确定</button>
        <button class="submitBtn redBtn" onclick="top.Dialog.close()">取消</button>
    </div>
</body>
</html>
<script type="text/javascript">

    $(function(){
        $("#SelectDept").bind("click",function () {
            $.session.set('deptId',$('input:radio:checked').val());
            $.session.set('deptName',$('input:radio:checked').attr('deptname'));
            top.Dialog.close();
        });
    })

</script>